package com.handinglian.ai.system.service;

import com.handinglian.ai.system.dto.MenuPermissionDto;
import com.handinglian.ai.system.dto.RoleDto;
import com.handinglian.ai.system.entity.Role;
import com.handinglian.ai.system.param.RoleCreateParam;
import com.handinglian.ai.system.param.RoleUpdateParam;

import java.util.List;

public interface RoleService {
    int create(RoleCreateParam roleCreateParam);

    int delete(Integer id);

    RoleDto getDetail(Integer id);

    List<RoleDto> list();

    int update(RoleUpdateParam roleUpdateParam);

    Role getByUserId(Integer userId);

    List<MenuPermissionDto> listMenuPermission(Integer id);
}
